Repository navigation
Improve CI-fix Azure queue failure diagnostics - #39243
Conversation
Preserve bounded, redacted Azure response details for nontransient queue failures so provider-side HTTP 400 validation errors are actionable without changing queue retry or acceptance semantics. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2c742a56-d991-47ed-801b-52bec21dc948
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39243Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39243" |
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
Valid JSON fallback responses can expose token fields written as JSON key-value pairs.
1 open finding
What changed in this PR
Improves Azure DevOps queue-failure diagnostics while preserving existing fail-closed behavior.
Changes:
- Extracts, bounds, and redacts Azure error details.
- Adds tests for structured and plain-text failures.
- One JSON credential-redaction gap remains.
| File | Description |
|---|---|
.github/scripts/Queue-CiFixAzdoValidation.ps1 |
Formats queue failure diagnostics. |
.github/scripts/Queue-CiFixAzdoValidation.Tests.ps1 |
Tests diagnostics and retry safety. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Azure Pipelines: 3 pipeline(s) were filtered out due to trigger conditions. |
|
Note 🔍
|
Cover valid JSON fallback responses whose quoted credential fields previously bypassed assignment-style redaction, while preserving safe diagnostic fields and existing queue failure semantics. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2c742a56-d991-47ed-801b-52bec21dc948
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Azure Pipelines: 3 pipeline(s) were filtered out due to trigger conditions. |
|
Note 🔍
|
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@PureWeen — new AI review results are available based on commit
4921c90.
🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix
Gate Result: ⚠️ SKIPPED
No tests were detected in this PR.
Recommendation: Add tests to verify the fix using the write-tests-agent.
📋 Pre-Flight — Context & Validation
Pre-Flight Context
Reported problem
PR #39243 is a diagnostics-only change for the trusted CI-fix dispatcher. A bot-created PR canary reportedly reached the native maui-pr queue operation, but a nontransient Azure DevOps HTTP 400 surfaced only the generic 400 (Bad Request) exception; the Azure response body containing the actionable provider validation error was discarded. The provider-side cause and restoration of queue acceptance remain unknown.
The PR references #39223, an open net11.0 CI issue where Windows and macOS Debug solution builds fail because VersionLessThan receives an empty version. That issue motivated the validation attempt but is not fixed by this PR.
GitHub metadata currently records the PR as merged into main on 2026-10-09, with final submitted head 4921c90376b788d272eec02a1ea07fcbe3f69be7.
Changed files and mechanism
The immutable diff changes exactly two PowerShell files:
-
.github/scripts/Queue-CiFixAzdoValidation.ps1- Adds
Get-AzdoQueueFailureMessage. - Reads the response text from
ErrorRecord.ErrorDetails.Message. - For JSON responses, preferentially emits Azure’s top-level
messageand optionaltypeKey; otherwise it retains bounded fallback text. - Normalizes tabs/newlines and redacts Basic/****** selected JSON credential fields, assignment-style token values, and JWT-shaped strings.
- Limits diagnostic detail to 1,024 characters by default, with an accepted range of 256–4,096 and an explicit truncation suffix.
- Preserves the original exception message when no usable response detail exists.
- Changes only the nontransient queue-POST catch path from rethrowing the original error to throwing the constructed diagnostic message. Transient classification, retries, sleeps, and duplicate-build reconciliation remain outside this new branch.
- Adds
-
.github/scripts/Queue-CiFixAzdoValidation.Tests.ps1- Includes the new helper in the test module’s selected function set.
- Adds Pester coverage for:
- Extracting Azure
message/typeKeyfrom an HTTP 400 while retaining one POST and no duplicate lookup. - Redacting and truncating a non-JSON response.
- Redacting quoted JSON credential fields while preserving a safe field.
- Extracting Azure
- A prior review thread identified that valid JSON fallback bodies could expose quoted token fields. The final commit adds the corresponding redaction and test; that thread is marked resolved.
Security and platform-sensitive paths
The affected script is trusted CI infrastructure rather than MAUI application/runtime code. Its unchanged workflow, .github/workflows/ci-fix-azdo-validation.yml, runs PowerShell on ubuntu-latest for pull_request_target and trusted fixer workflow_run events. It sparsely checks out the trusted workflow revision, does not fetch or execute the PR head, uses persist-credentials: false, and receives Azure OIDC client settings plus a read-only GitHub token.
Relevant platform boundaries are therefore:
- GitHub Actions/Linux/PowerShell: response/error-record behavior and Pester compatibility are directly relevant.
- Azure DevOps REST provider: the diagnostic depends on how failed
Invoke-RestMethodcalls populateErrorDetails.Message. - Android: Android is the requested platform for later testing, but this diff contains no Android source or device behavior. Android validation can exercise the selected review lane only indirectly.
- Windows/macOS: these are the platforms affected by linked issue #39223. Android-only testing cannot establish whether that originating build failure is fixed, and this PR does not claim to fix it.
Validation requirements and available evidence
- Gate:
⚠️ skipped because Gate detected no tests. It must not be rerun. The submitted diff nevertheless contains Pester tests; why Gate did not classify them is unknown. - The PR description reports 82 passing Pester tests under versions 5.9.0 and 6.2.0, but those claims are tied to commit
ba0fd0e822e2dce0fce48ee3eb4e9a1f74e2d5f1, not the final head that added JSON credential redaction. - At the final head, GitHub check metadata shows
Pester scriptsconcluded failure. The failure logs/reason were unavailable through the read-only context gathered here. - The three
maui-pr,maui-pr-devicetests, andmaui-pr-uitestschecks were neutral after being filtered by trigger conditions; they do not establish functional validation. - Validation should specifically establish final-head behavior for:
- JSON and non-JSON Azure error shapes.
- Missing or whitespace-only response details.
- Malformed JSON and PowerShell-version-specific conversion exceptions.
- All intended credential forms, line normalization, and exact truncation bounds.
- One POST with no retry or duplicate reconciliation for nontransient failures.
- Unchanged transient retry/reconciliation behavior.
- Acceptability of replacing the original thrown error record with a newly constructed diagnostic exception/message.
- End-to-end emission of a useful redacted Azure response during the next legitimate automatic dispatcher execution, without manually replaying the dispatcher or issuing a direct Azure queue POST.
Remaining uncertainties
- The actual Azure response that caused the original HTTP 400 is unavailable, so its shape and provider validation message are unknown.
- The Azure queue-rejection root cause remains unproven, and successful queue acceptance has not been demonstrated.
- The reason the final-head
Pester scriptscheck failed is unknown. - The PR description’s successful test counts were not independently verified and do not cover the recorded final head.
- Whether every
Invoke-RestMethodfailure shape exposes the body throughErrorDetails.Messageis unconfirmed. - Only the response-detail portion is explicitly sanitized by the new helper; whether an exception message itself could contain sensitive material is unestablished.
- No post-merge automatic dispatcher diagnostic was available.
- This is context gathering, not an exhaustive code or security review, and it does not replace the dedicated expert review.
🔬 Code Review — Deep Analysis
Code Review — PR #39243
Independent Assessment
What this changes:
The PR adds Get-AzdoQueueFailureMessage and wires it into the nontransient queue-POST failure path in .github/scripts/Queue-CiFixAzdoValidation.ps1 so thrown errors include bounded/redacted Azure response detail (preferring JSON message + optional typeKey, else fallback body text). It also adds Pester tests for nontransient behavior preservation, truncation/redaction, and JSON credential-field redaction in fallback responses.
Inferred motivation:
Make Azure DevOps queue failures diagnosable (especially HTTP 400 validation responses) without changing the one-POST/no-retry semantics for nontransient failures.
Reconciliation with PR Narrative
Author claims: diagnostics-only change; preserve fail-closed queue semantics; redact sensitive response details; prior successful local Pester runs.
Agreement/disagreement:
- Agree on mechanism and semantics preservation in source/tests at final head.
- Final-head check evidence does not validate the narrative’s earlier passing-test claim for commit
ba0fd0e...; current head is4921c903...and has a failedPester scriptscheck.
Prior Review Reconciliation
| Prior ❌ Error Finding | Source | Status | Evidence |
|---|---|---|---|
JSON fallback could leak {"access_token":"..."} style secrets |
Copilot inline comment on .github/scripts/Queue-CiFixAzdoValidation.ps1 |
✅ Fixed | Final head adds JSON key/value redaction regex at .github/scripts/Queue-CiFixAzdoValidation.ps1:127 and regression test at .github/scripts/Queue-CiFixAzdoValidation.Tests.ps1:1185-1204. |
No unresolved prior ❌ Error findings were found in current code.
Blast Radius Assessment
- Runs for all instances: No (only error path of CI-fix Azure queue POST failures, not app/runtime flow).
- Startup impact: No MAUI app startup impact (GitHub Actions/PowerShell infra script only).
- Static/shared state: No new mutable shared state introduced.
- Platform relevance: Requested platform was Android, but this diff is CI PowerShell/GitHub Actions + Azure DevOps boundary logic; no Android runtime/control/handler code is touched.
CI Status
gh pr checks --requiredcould not be executed due unauthenticatedghin this environment (tool-unavailable fallback applies).- Independent head check-run evidence (
4921c903...) shows:Pester scripts: completed / failureBuild Insights: in_progressmaui-pr,maui-pr-uitests,maui-pr-devicetests: neutral
- Classification: undetermined for merge-readiness (required-check view unavailable here; at least one relevant check is failed and another pending).
- Action taken: confidence capped low; no LGTM.
Findings
No new concrete actionable code defect was validated from current diff/source/tests.
Failure-Mode Probing
- Nontransient POST path: still one POST, no reconciliation/retry (guarded by
if (-not Test-IsTransientHttpException) { throw (Get-AzdoQueueFailureMessage ...) }at.github/scripts/Queue-CiFixAzdoValidation.ps1:827-829), with explicit test coverage at.github/scripts/Queue-CiFixAzdoValidation.Tests.ps1:1131-1162. - Fallback secret redaction when JSON has no top-level
message: now includes JSON key/value credential redaction plus assignment and bearer/basic forms (.ps1:126-129), covered by test.Tests.ps1:1185-1204. - Truncation/normalization bounds: newline/tab normalization and bounded truncation with suffix remain deterministic (
.ps1:125,131-134) with explicit test (.Tests.ps1:1164-1183). - Transient reconciliation semantics: unchanged branch preserves ambiguous-POST reconciliation behavior; existing tests around “may have been accepted” flows remain present in same file.
External Output Contract
| Consumer token/pattern | Producer location | Producer emission condition | Consumer assumption | Ordinary negative case | Downstream effect |
|---|---|---|---|---|---|
ErrorRecord.ErrorDetails.Message body; JSON keys message/typeKey |
PowerShell Invoke-RestMethod failure record content from Azure DevOps queue API response body |
Present when provider returns body text in failure record details | Body may contain actionable provider diagnostics and may contain sensitive tokens needing redaction/bounds | Nontransient queue failure with non-JSON or JSON lacking top-level message |
Consumer keeps fallback text, applies normalization/redaction/truncation, throws composed diagnostic; no retry/reconciliation for nontransient failures |
| Redaction patterns for bearer/basic, assignment tokens, JSON credential fields, JWT-like strings | Same response-body source as above | Tokens appear in provider/body text | Redaction should sanitize before throw | Valid JSON fallback with credential fields but no top-level message |
Final head now redacts these values before composing thrown message |
Applicable Security / External-Output Contract Analysis
- This change is in trusted infra scripts and does not execute untrusted PR code paths directly.
- It handles external provider output (Azure response body) and now applies bounded sanitization before surfacing diagnostics.
- The previously identified JSON fallback credential leak mechanism is source-fixed and test-backed at final head.
Verdict: NEEDS_DISCUSSION
Confidence: low
Summary:
The submitted code change appears mechanically sound for its intended diagnostics behavior and preserves nontransient retry/reconciliation semantics, with the prior JSON-redaction defect now fixed and regression-tested. However, final-head CI evidence is not in a merge-ready state from this environment (Pester scripts failed; another check pending; required-check query unavailable via unauthenticated gh). Given undetermined/failing check state, this review cannot recommend LGTM.
Refinement-threshold decision (required)
Decision: NOT MET for additional code-refinement request.
Reason: after validating source and tests at final head, no concrete new actionable code defect or unresolved behavioral mechanism was established beyond CI/check-state uncertainty. Current blocker is evidence/verification state (failed/pending checks), not a newly proven implementation bug in changed lines.
🛠️ Try-Fix — Analysis & Comparison
Alternative generation: not requested
Evidence-first mode intentionally omits routine Try-Fix attempts. This is not a failed
attempt, a completed alternative search, or evidence that alternatives have no value.
The expert review may still produce one evidence-backed PR refinement.
📝 PR Finalize — Recommended Title & Description
Assessment: ✏️ Recommend updating — the implementation summary remains accurate, but the validation section applies to an earlier head and does not disclose the failed final-head Pester check.
Recommended title
[CI] CI-fix: Preserve redacted Azure queue failure diagnostics
Recommended description
### Description of Change
Preserve bounded, redacted Azure DevOps response details when the trusted CI-fix dispatcher receives a nontransient queue failure such as HTTP 400.
The first genuine bot PR canary proved native `maui-pr` integration, but the dispatcher lost Azure's response body for queue POST failures and surfaced only `400 (Bad Request)`. The provider-side queue-rejection cause remains unknown.
- `.github/scripts/Queue-CiFixAzdoValidation.ps1` adds `Get-AzdoQueueFailureMessage`, which reads `ErrorRecord.ErrorDetails.Message`, prefers Azure's top-level `message` and optional `typeKey` for JSON responses, and otherwise retains bounded fallback text. It normalizes tabs and newlines, redacts common Basic/Bearer, assignment-style, JSON credential-field, and JWT-shaped secrets, and limits diagnostic detail to 1,024 characters by default with an accepted 256–4,096 range and an explicit truncation suffix.
- The nontransient queue-POST catch path now throws the constructed diagnostic message. It still performs one POST with no retry or duplicate-build reconciliation; transient classification, retries, sleeps, and ambiguous-POST reconciliation remain unchanged.
- `.github/scripts/Queue-CiFixAzdoValidation.Tests.ps1` adds Pester coverage for Azure `message`/`typeKey` extraction, non-JSON redaction and truncation, JSON credential-field redaction, and preservation of the nontransient one-POST behavior.
**Diagnostics-only scope:** this change does not claim to restore Azure queue acceptance. After human merge, the next legitimate automatic trusted dispatcher execution must supply the actual redacted Azure response before any payload, provider, or configuration change is justified. No manual dispatcher rerun or direct Azure queue POST is part of this validation.
### Validation
- At final submitted head `4921c90376b788d272eec02a1ea07fcbe3f69be7`, the trusted Gate was skipped because it detected no tests, despite the Pester test changes.
- The final-head `Pester scripts` check failed; the failure reason was unavailable to this review. `Build Insights` was still pending, while `maui-pr`, `maui-pr-devicetests`, and `maui-pr-uitests` were neutral after trigger filtering.
- At earlier head `ba0fd0e822e2dce0fce48ee3eb4e9a1f74e2d5f1`, the author reported 82 passing tests with Pester 5.9.0 and an independent run reported 82 passing tests with Pester 6.2.0. Those runs predate the final JSON credential-field redaction change and do not validate the final submitted head.
- The earlier-head focused review verified the two-file scope and reported `git diff --check` passing.
### Platforms
This change affects trusted GitHub Actions/Linux/PowerShell CI infrastructure and the Azure DevOps REST boundary. It does not change Android or other MAUI runtime behavior.
### Issues Fixed
Refs #39223
🏁 Report — Final Recommendation
⚠️ Final Recommendation: REQUEST CHANGES
Phase Status
| Phase | Status | Notes |
|---|---|---|
| Pre-Flight | ✅ COMPLETE | Trusted evidence-first context consumed |
| Code Review | NEEDS_DISCUSSION (low) | 0 errors, 0 warnings; final-head validation remains unresolved |
| Gate | No tests detected; Gate did not establish that the submitted fix passes | |
| Try-Fix | not requested | Intentionally omitted by evidence-first mode |
| Refinement | NOT GENERATED | Expert review found no source-backed actionable defect meeting the refinement threshold |
| Report | ✅ COMPLETE | Only real candidates were compared |
Code Review and Candidate Comparison
| Candidate | Implementation evidence | Validation evidence | Assessment |
|---|---|---|---|
pr |
The submitted helper preserves nontransient one-POST/no-reconciliation behavior, bounds and normalizes provider detail, and redacts the previously identified JSON credential-field form. The expert review found no concrete implementation defect at final head. | Gate was skipped. The relevant final-head Pester scripts check failed, Build Insights was still pending, and the required-check query was unavailable; the 82-test passing claims in the PR description apply to an earlier head. |
Sole real candidate and therefore selected, but not demonstrated merge-ready. |
Try-Fix: not requested. No try-fix-N candidates were generated, and no pr-plus-reviewer refinement was implemented because the expert evidence threshold was not met.
Selected Fix: PR — it is the only implemented candidate and the expert review found no source-backed reason to alter it. This selection does not override the skipped Gate or unresolved final-head check evidence.
Summary
Request changes because the submitted PR lacks successful final-head validation: Gate was skipped, the relevant Pester check failed, and another check remained pending. The expert review classified the code as NEEDS_DISCUSSION with low confidence rather than identifying a defect suitable for a reviewer patch.
Root Cause
The trusted CI-fix dispatcher discarded the actionable Azure DevOps response body when a nontransient queue POST failed, leaving only the generic HTTP exception text. The provider-side reason for queue rejection remains unknown and is outside this diagnostics-only change.
Fix Quality
The submitted fix is focused and preserves the existing fail-closed queue semantics while adding bounded, normalized, redacted provider diagnostics and targeted Pester coverage. Its implementation appears sound from source inspection, including the final JSON credential-field redaction, but failed or missing final-head validation prevents an approval recommendation.
🧭 Next Steps — review latest findings
No alternative fix was selected for this run. Review the session findings and CI results before merging.
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change This PR fixes unattended CI-fixer evidence, bootstrap, and empty-queue contracts without expanding credentials, permissions, network policy, tool trust, model policy, or action/compiler pins. 1. **Azure failed-task evidence:** both workflow twins prepare bounded Azure timeline and full-log evidence before the agent starts. The agent consumes retained manifest/log paths instead of improvising a compound downloader that can require interactive approval. Missing or invalid log IDs, redirects, malformed/capped/timed-out responses, and ambiguous previous-attempt provenance remain explicit incomplete evidence and cannot support absent-signature or fixed conclusions. 2. **Detection ripgrep bootstrap:** production run `37671381210` printed `ripgrep not found; installing with apt-get...` and then produced no further installer diagnostics until GitHub cancelled the detection job at the six-hour maximum. The exact apt cause is unknown. A supported `jobs.detection.pre-steps` hook now prepares ripgrep before the compiler-owned installer using an emitted 270-second outer watchdog, 120-second bounds around each apt operation, noninteractive sudo, lock/network timeouts, retry limits, and explicit `rg --version` verification. The unchanged pinned installer then sees `rg` and exits immediately. 3. **Authoritative empty queue:** scheduled run `37711255508` had an authoritative, untruncated zero-issue/zero-candidate snapshot, but the agent assembled a denied compound `jq`/`touch` completion command and emitted `report_incomplete` instead of `noop`. A trusted helper now revalidates the snapshot, writes zero-byte coverage plus the deterministic summary header, and registers exactly one expected noop. Empty success is bound to explicit producer-emitted product-base provenance (`main` or `net11.0`) and requires actual JSON Boolean, Int64, string, and array types; missing/wrong base, coercible strings, fractional/floating counts, null inventories, and malformed values fail before any success artifact or expectation is written. The prompt invokes the helper and existing `safeoutputs noop` operation separately. 4. **Blocking evidence-review findings:** Azure timeline and build-query shapes are structurally validated, including concrete JSON-object validation for every collection row; newest-build evidence cannot fall back to an older complete build; response bytes are charged to the global budget as they are read (including failed/cancelled attempts); and failed-task inventory includes `partiallySucceeded` Tasks and Tasks carrying error issues. Both workflow twins use trusted `main` as their workflow control-plane revision. The net11 twin still passes `-BaseBranch net11.0` to the authoritative producer and preserves `net11.0` as its fix/capture/apply product base. Build Insights remains the broader CI platform and HLX remains a useful access/investigation client. The investigation did not establish a supported replacement headless raw timeline/full-log contract or an already-provisioned HLX CLI for this workflow's unchanged security contract. This PR therefore keeps the focused public-Azure producer rather than adding credentials or a runtime migration. That is a scoped investigation result, not a claim that no such service contract can exist. **Reviewed head:** `0159c81347b37e21195fccb9e50102c67e1574b8` **Rebased onto:** `5375f6f87279945656cd5d15ec094f16dd8d9aff` (`main`) ### Rebase and follow-up corrections - Omitted/null `previousAttempts` no longer creates a synthetic invalid reference. A fully retrieved previous attempt with zero failed Tasks is accepted as a legitimate empty inventory. Strict retry-ancestry validation remains intact. - Initial current-failure selection excludes `previous_attempt` logs. Historical failures are examined separately for retry/flakiness classification rather than promoted to current FINAL failures. - Canceled-build handling and per-definition PR build queries preserve relevant evidence without combined-query starvation. The agent consumes retained timeline evidence rather than attempting an unattended T2 download. - The rebase preserves current main's hosted-environment/trusted Node-helper guidance and the authoritative agent-runner candidate file at `/tmp/gh-aw/agent/ci-fix-context/candidates.json`. It does not use an undeclared pre-activation output. Node transport helpers are invoked with `node`, not `pwsh node`. - JSON deserialization uses `-NoEnumerate` and concrete-object guards so singleton array roots cannot masquerade as timeline/build-query/candidate/empty-queue objects. The failed-task aggregation remains an array when there is exactly one current failure before previous-attempt results are appended. - Empty-queue completion explicitly checks the native Node registrar exit code. Metadata is written before expectation registration, so a metadata-write failure cannot leave an unmatched expected noop. Registrar failure cannot return successful empty-queue completion. - Both Step 0.1 helper examples use Bash fences and Bash continuations, preserving the existing relative helper path and all main/net11 arguments. Regression tests extract each prescribed command, run `bash -n`, and capture its seven arguments through a harmless stub without touching the real `/tmp/gh-aw` paths. ### Current validation and review boundary - Independently executed all four focused Pester suites against the exact final committed content: **120 passed, 0 failed, 0 skipped, 0 inconclusive, 0 not run**. Breakdown: evidence 61, empty queue 23, PR query 30, registrar 6. The final independent run took 18.02 seconds with native-command error preference explicitly disabled, exercising the explicit registrar exit-code guard. - Regression-first evidence includes malformed JSON-root acceptance and singleton-task aggregation failures before correction, actual native registrar failure, and both original Step 0.1 blocks failing `bash -n` with exit 2. The corrected commands pass syntax and exact-argument checks. - Both locks were regenerated using repository-pinned **gh-aw v0.86.2**, strict compilation: **2/2 workflows succeeded, 0 warnings**. Compiler/action/container/model/security pins were not broadened by these corrections. - Final remote/local commit, append parent, required commit trailer, clean worktree, and all ten authoritative GitHub PR file blobs were independently checked. Generated environment-key ordering varies between compilations; this is not a claim of byte-identical compiler output. - Three full independent review attempts were made against the rebased source: **two completed; one failed before assessment**. Later corrections received targeted review and behavioral validation. This is not three successful reviews or a multi-model result. - Unsupported retry-ancestry relaxation, extra top-level diagnostic synthesis, and a timeout bump were not applied. A registration-before-file-write change introduced during review was rejected before publication after checking the strict output reconciler. - **Current Poutine validation is blocked:** Docker is inactive (container exit 125). Historical Poutine results below do not validate this head. These focused tests are not a full-repository suite or hosted-production run. - At the final discussion snapshot there were **27 threads, 4 unresolved**. All four concerns are corrected in source; three threads are marked outdated. No discussions or human reviews were resolved, dismissed, or overridden by this work. Human re-review is still needed. ### Original blocking review dispositions - `4212363518` - **confirmed and fixed:** parse success no longer makes timelines complete unless the root is a concrete JSON object with an actual `records` array containing only concrete JSON-object rows. Missing, null, scalar, object-valued, or scalar-entry `records` remain explicitly malformed/incomplete. - `4212363661` - **confirmed and fixed:** branch-build queries require a concrete JSON object with a `value` array of concrete JSON-object rows; an invalid selected build ID makes `queryComplete = false` instead of silently producing complete evidence. - `4212363696` - **confirmed and fixed:** PR-build queries enforce the same collection shape. Scalar rows cannot be filtered away as nonmatches, and any head-matching row with an invalid build ID makes the query incomplete. - `4212363745` - **confirmed and fixed:** the net11 FRESH path must inspect the newest completed build, and ADVANCE must inspect the newest matching PR build. An incomplete newest build produces `report_incomplete`; it cannot be skipped for older evidence. - `4212363782` - **confirmed and fixed:** the main workflow has the same newest-build fail-closed requirement. - `4212363829` - **confirmed and fixed:** each read is bounded by the remaining per-request and shared byte budgets, and every returned byte is charged immediately, including bytes consumed before cancellation, exceptions, or retries. - `4212363870` - **confirmed and fixed:** failed-task selection includes failed Tasks, partially-succeeded Tasks, and Task records with error-typed issues. Non-Task records remain excluded. <details> <summary>Historical validation leading to original head 27dbc5e (not current-head proof)</summary> The records below belong to the original review sequence through `27dbc5edd203d7d868225b4c0f252f0878d53525`. They are retained for provenance, not presented as fresh validation of the rebased head. - Initial seven-finding regression-first result against the prior implementation: **14 passed, 16 failed**; corrected targeted producer/workflow suite: **31 passed, 0 failed**. - Independent follow-up at `44005dff` found the PowerShell `[pscustomobject]` accelerator accepted scalar array entries: its probe was **36/39**, with failures for direct scalar rows, scalar timeline records, and scalar PR-query rows. - Production regression-first suite with number/string/Boolean rows against the old helper: **35 passed, 9 failed out of 44**. - Corrected `Get-CiFixAzdoEvidence` suite at that stage: **44 passed, 0 failed**. - The independent 39-case contract probe rebound to that corrected helper: **39 passed, 0 failed**. Valid empty arrays and object rows were accepted; number, string, Boolean, and null rows failed structurally before downstream filtering. - Four focused Pester suites at original head: **99 passed, 0 failed, 0 skipped**. - Byte-accounting behavioral probe: a local HTTP server returned headers and five body bytes, then stalled. The request failed at the shared deadline and correctly reduced the shared budget from 100 to 95. - Bounded live anonymous Azure probe from the preceding original review correction: main build `1628270` had a complete query/timeline/evidence result; cited build `1626245` had complete evidence with two failed logs, including log `179` containing `MSB4184` `VersionLessThan('', 11.0)`. Combined reported downloaded bytes: `2,345,580`. Cited historical build `1528586` separately returned timeline HTTP 404. - Pinned gh-aw v0.86.2 normal compilation then succeeded for **2/2 workflows, 0 warnings**. - Historical Poutine compilation then succeeded for **2/2 workflows, 0 warnings**, with byte-identical locks before/after those compilation modes. This does not establish current Poutine success or current byte identity. - Generated manifests and action/container/model/security pins were unchanged in that verification. PowerShell parsing and `git diff --check` passed. - Earlier empty-queue contracts: **38/38** probes, **36/36** invalid snapshots rejected without artifacts, and producer-generated main/net11 fixtures each produced zero-byte coverage and exactly one expected noop. - Earlier previous-attempt provenance: **64/64** deduplicated real build `1626285` Task associations correct, with **0 mismatches**, versus 54 before correction. The later retained native-timeline adjudication found 76 raw associations across eight timelines with zero errors and passed eight discriminating controls; it did not establish every possible service response shape. </details> **Deployment boundary:** this is a focused source and contract pass, not a full production pass. Hosted apt behavior, Copilot CLI unattended helper/noop consumption, and deployment and exercise of this exact revision remain unproved. Local and retained public-Azure evidence do not substitute for that hosted observation. The separate automatic UI/device queue HTTP 400 blocker remains unresolved and is outside this PR. Diagnostics-only PR #39243 preserves that Azure response body; it does not make #39237 a queue fix or hosted canary. This workflow change does not add dispatch/rerun/queue authority, merge or approval actions, review publication, thread resolution, or Agent merge. ### Issues Fixed N/A - internal unattended CI-fixer workflow reliability repair. --------- Co-authored-by: PureWeen <223556219+Copilot@users.noreply.github.com> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com> Copilot-Session: 53c9d600-0fd5-46c7-ac9a-03cebae4546d

Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Preserve bounded, redacted Azure DevOps response details when the trusted CI-fix dispatcher receives a nontransient queue failure such as HTTP 400.
The first genuine bot PR canary proved native
maui-printegration but the dispatcher lost Azure's response body for all queue POST failures, leaving only400 (Bad Request). This change extracts Azure'smessageandtypeKeywhen available, bounds fallback response text, redacts common credential forms, and keeps the existing fail-closed behavior: one POST, no retry or reconciliation for nontransient failures.Diagnostics-only readiness: this change is ready for human deployment, but it does not claim to restore Azure queue acceptance. The provider-side HTTP 400 root cause remains unproven and queueing is not restored. After human merge, the next legitimate automatic trusted dispatcher execution must supply the actual redacted Azure response before any payload, provider, or configuration change is justified. No manual dispatcher rerun or direct Azure queue POST is part of this validation.
Validation at exact head
ba0fd0e822e2dce0fce48ee3eb4e9a1f74e2d5f1:mainverified before and after the run.git diff --check: passed.Issues Fixed
Refs #39223